package com.sdp.right.cron;

import com.sdp.core.bizc.utils.ApplicationContextUtils;
import com.sdp.right.db.sys_cron_log.service.ISysCronLogService;
import com.sdp.right.entity.SysCronLog;

import akka.actor.UntypedActor;

public class TaskLogActor extends UntypedActor{

	@Override
	public void onReceive(Object arg0) throws Exception {
		if(arg0==null) {
			return;
		}
		SysCronLog log = (SysCronLog) arg0;
		ApplicationContextUtils.getBean(ISysCronLogService.class).save(log);
	}

}
